function cffAutoComplete(obj,url,maxRows,minLength,callback){
	if(typeof(minLength) == "undefined"){
		minLength = 1;
	}
	if(typeof(callback) == "undefined"){
		callback = function(var1){
			
		};
	}
	$( obj ).autocomplete({
			source: function( request, response ) {
				$.ajax({
					url: url,
					dataType: "json",
					data: {
						pageSize: maxRows,
						data: request.term
					},
					error:function(){},
					success: function( data ) {
						response( $.map( data, function( item ) {
							return {
								label: item,
								value: item
							}
						}));
					}
				});
			},
			minLength: minLength,
			select: function(event,ui){
				callback(ui.item.value);
			},
			open: function() {
				
			},
			close: function() {
				
			}
	});
}